package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 角色菜单信息对象 sys_role_menu
 *
 * @author yfkj
 * @date 2021-10-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleMenu
{
    private static final long serialVersionUID = 1L;
    /** 角色ID */
    @com.ruoyi.common.core.annotation.Excel(name = "角色ID")
    @TableField(exist = true)
    @ApiModelProperty(value =  "角色ID")
    private Long roleId;
    /** 菜单ID */
    @com.ruoyi.common.core.annotation.Excel(name = "菜单ID")
    @TableField(exist = true)
    @ApiModelProperty(value =  "菜单ID")
    private Long menuId;
    public static final String ROLE_ID="role_id";
    public static final String MENU_ID="menu_id";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("roleId", getRoleId())
                .append("menuId", getMenuId())
                .toString();
    }
}
